package cn.bgs.vo;


import cn.bgs.pageUtil.PageRequest;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.time.LocalDateTime;


@Data
@AllArgsConstructor
@NoArgsConstructor
public class MonthVo {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "月卡自增id")
    private Integer cardId;

    @ApiModelProperty(value = "月卡编号")
    private String serialNumber;

    @ApiModelProperty(value = "持卡人姓名")
    private String cardName;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "绑定车辆")
    private String vehicle;

    @ApiModelProperty(value = "绑定车牌号")
    private String vehicleNumber;

    @ApiModelProperty(value = "办理人")
    private String transactor;

    @DateTimeFormat(pattern = "yyyy-MM-dd ")//DateTimeFormat 是入参格式化；
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")//JsonFormat是出参格式化。
    @ApiModelProperty(value = "月卡生效时间")
    private LocalDateTime effectiveTime;;

    @DateTimeFormat(pattern = "yyyy-MM-dd ")//DateTimeFormat 是入参格式化；
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")//JsonFormat是出参格式化。
    @ApiModelProperty(value = "月卡到期时间")
    private LocalDateTime maturityTime;;

    @ApiModelProperty(value = "所属车辆id")
    private Integer vehicleCarId;


    @ApiModelProperty(value = "费用合计")
    private Double total;


    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "月卡状态")
    private String state;

    @DateTimeFormat(pattern = "yyyy-MM-dd ")//DateTimeFormat 是入参格式化；
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")//JsonFormat是出参格式化。
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd ")//DateTimeFormat 是入参格式化；
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")//JsonFormat是出参格式化。
    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;


    @ApiModelProperty(value = "删除标志（y是删除 n是未删除）")
    private String deleteFlag;



    private PageRequest pageRequest;
}
